package cn.ztuo.bitrade.service;

import cn.ztuo.bitrade.dao.TeamDao;
import cn.ztuo.bitrade.entity.Team;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TeamService {


    @Autowired
    private TeamDao teamDao;


    public List<Team> findAll(){
        Sort sort = new Sort(Sort.Direction.ASC, "id");
        return teamDao.findAll(sort);
    }

}
